import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/vant.js'
import axios from 'axios'
import './assets/font/iconfont.css'


axios.defaults.baseURL = "http://www.liulongbin.top:3005/"
    // 把axios挂载到Vue的原型上 目的是让所有的组件都可以使用
Vue.prototype.$http = axios

Vue.config.productionTip = false


Vue.filter('formatDate', function(time) {
    var date = new Date(time)
    var y = date.getFullYear()
    var m = date.getMonth() + 1
    var d = date.getDay()
    return y + '-' + m + '-' + d
})


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')